<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script>
			function quit(){
				var r=confirm("确认关闭此页面")
				if(r = true){
					window.close();
				}
			}
		</script>
	</head>
	<body>
		<p>确认框操作练习</p>
		<button onclick="quit()">关闭网站</button>
	</body>
</html>
